from django.template.defaulttags import url
from django.urls import path, include
from rest_framework import routers

from . import views

# 添加路由方式
# router = routers.SimpleRouter()
# router.register(r'company', views.CompanyView) # 前缀，视图集
# urlpatterns += router.urls # 第一种


urlpatterns = [
    # path("GetAll", views.getAllView),
    # path("GetAll", views.CompanyView.as_view()),
    # path("GetDetail", views.CompanyView.as_view({'get': 'get_detail'})),
    # path("Get/<str:uuid>/", views.get_view),
    # path("GetList/", views.get_list_view),
    # path("Create", views.createView),
    # path("Update", views.update_view),
    # path("Delete", views.delete_list_view),
    # 添加路由放方式
    # url(r"^", include(router.urls))  # 第二种
]


